﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Adams.Public.Web.Business.Web.Areas.Membership.Profile
{
    public class Password
    {
        public static Adams.Public.DataTransfer.Web.Areas.Membership.Profile.Password.PageLoad PageLoad(string token)
        {
            var input = new Adams.Public.DataTransfer.MemberInfo() { 
                Token = token
            };

            var data = Api.GetData<Adams.Public.DataTransfer.Profile.GetMember>("Profile/GetMember", input);

            var model = new Adams.Public.DataTransfer.Web.Areas.Membership.Profile.Password.PageLoad();
            
            return model;
        }

        public static Adams.Public.DataTransfer.FormOutput SavePassword(string token, Adams.Public.DataTransfer.Profile.SavePasswordInput input)
        {
            input.Token = token;
            var model = Api.GetData<Adams.Public.DataTransfer.FormOutput>("Profile/SavePassword", input);
            return model;
        }
    }
}
